package com.briup.springboot_mybatisplus.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author briup
 * @since 2023-07-18
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_teacher")
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;
//    @TableId(value = "id",type = IdType.ASSIGN_UUID) //UUID类生成的字符串
    @TableId(value = "id",type = IdType.ASSIGN_ID)  //雪花算法生成数字
//    @TableId(value = "id",type = IdType.INPUT)
    private String id;

    private String name;
    //表示是否逻辑删除 将delete语句变成update
    private Integer deleted;
}
